l=0
for i in range(1,967):
    if i%2==1:
        l=l+i
    else:
        l=l-i
print("数列1-2+3-4+...-966的值为:",format(l))